/*
 * Created on Nov 14, 2009
 */
package com.mgmaps.utils;

public interface Progress {

  /**
   * Set the current progress value (0 to 1)
   * @param d new progress value
   */
  public void setProgress(double d);

  /**
   * Inform the progress reporter that the process is complete.
   * 
   * @param data completion data, for instance form to go next
   */
  public void complete(final Object data);
  
  /**
   * Inform the progress reporter that the process is cancelled.
   * The behavior will be almost the same as when completed.
   */
  public void cancel();

}
